/**
 * 
 */
package com.rst.org.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Email;

/**
 * @author JavaDeamon
 *
 */
@Entity
@Table(name="ORGANIZATION_DETAILS")
public class OrganizationDetailsDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8503754255235267525L;
	private Integer orgId;
	private String orgName;
	private String orgShortName;
	private String addLine1;
	private String addLine2;
	private String addLine3;
	private String pincode;
	private String telCode1;
	private String telNo1;
	private String telCode2;
	private String telNo2;
	private String faxNo1;
	private String faxNo2;
	@Email
	private String website1;
	@Email
	private String website2;
	
	
	/**
	 * @return the orgId
	 * Primary key
	 * auto generated
	 */
	@Id
	@Column(name="ORG_ID", length=10)
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getOrgId() {
		return orgId;
	}
	/**
	 * @return the orgName
	 * contains name of organization
	 * column cannot be null
	 * length is 50
	 */
	@Column(name="ORG_NAME", nullable=false, length=50)
	public String getOrgName() {
		return orgName;
	}
	/**
	 * @return the orgShortName
	 * contains abbrevation for company name
	 * length is 10
	 */
	@Column(name="ORG_SHORT_NAME", length=10)
	public String getOrgShortName() {
		return orgShortName;
	}
	/**
	 * @return the addLine1
	 * contain address
	 * column cannot be null
	 * length is 100
	 */
	@Column(name="ORG_ADD_LINE_1", nullable=false, length=100)
	public String getAddLine1() {
		return addLine1;
	}
	/**
	 * @return the addLine2
	 * contain address
	 * length is 100
	 */
	@Column(name="ORG_ADD_LINE_2", length=100)
	public String getAddLine2() {
		return addLine2;
	}
	/**
	 * @return the addLine3
	 * contain address
	 * length is 100
	 */
	@Column(name="ORG_ADD_LINE_3", length=100)
	public String getAddLine3() {
		return addLine3;
	}
	/**
	 * @return the pincode
	 * contains pincode for company
	 * column cannot be null
	 * length is 8
	 */
	@Column(name="ORG_PINCODE", nullable=false, length=8)
	public String getPincode() {
		return pincode;
	}
	/**
	 * @return the telCode1
	 * contain code for telno
	 * column cannot be null
	 * length is 6
	 */
	@Column(name="ORG_TEL_CODE_1", nullable=false, length=6)
	public String getTelCode1() {
		return telCode1;
	}
	/**
	 * @return the telNo1
	 * contain telno
	 * column cannot be null
	 * length is 10
	 */
	@Column(name="ORG_TEL_NO_1", nullable=false, length=10)
	public String getTelNo1() {
		return telNo1;
	}
	/**
	 * @return the telCode2
	 * contain code for telno
	 * length is 6
	 */
	@Column(name="ORG_TEL_CODE_2", length=6)
	public String getTelCode2() {
		return telCode2;
	}
	/**
	 * @return the telNo2
	 * contain telno
	 * length is 10
	 */
	@Column(name="ORG_TEL_NO_2",length=10)
	public String getTelNo2() {
		return telNo2;
	}
	/**
	 * @return the faxNo1
	 * contain fax no
	 * length is 15
	 */
	@Column(name="ORG_FAX_NO_1", length=15)
	public String getFaxNo1() {
		return faxNo1;
	}
	/**
	 * @return the faxNo2
	 * contain fax no
	 * length is 15
	 */
	@Column(name="ORG_FAX_NO_2", length=15)
	public String getFaxNo2() {
		return faxNo2;
	}
	/**
	 * @return the website1
	 * contain website of org
	 * column cannot be null
	 * length is 50
	 */
	@Column(name="ORG_WEBSITE_1", nullable=false, length=50)
	public String getWebsite1() {
		return website1;
	}
	/**
	 * @return the website2
	 * contain website of org
	 * length is 50
	 */
	@Column(name="ORG_WEBSITE_2", nullable=false, length=50)
	public String getWebsite2() {
		return website2;
	}
	
	
	/**
	 * @param orgId the orgId to set
	 */
	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}
	/**
	 * @param orgName the orgName to set
	 */
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	/**
	 * @param orgShortName the orgShortName to set
	 */
	public void setOrgShortName(String orgShortName) {
		this.orgShortName = orgShortName;
	}
	/**
	 * @param addLine1 the addLine1 to set
	 */
	public void setAddLine1(String addLine1) {
		this.addLine1 = addLine1;
	}
	/**
	 * @param addLine2 the addLine2 to set
	 */
	public void setAddLine2(String addLine2) {
		this.addLine2 = addLine2;
	}
	/**
	 * @param addLine3 the addLine3 to set
	 */
	public void setAddLine3(String addLine3) {
		this.addLine3 = addLine3;
	}
	/**
	 * @param pincode the pincode to set
	 */
	public void setPincode(String pincode) {
		this.pincode = pincode;
	}
	/**
	 * @param telCode1 the telCode1 to set
	 */
	public void setTelCode1(String telCode1) {
		this.telCode1 = telCode1;
	}
	/**
	 * @param telNo1 the telNo1 to set
	 */
	public void setTelNo1(String telNo1) {
		this.telNo1 = telNo1;
	}
	/**
	 * @param telCode2 the telCode2 to set
	 */
	public void setTelCode2(String telCode2) {
		this.telCode2 = telCode2;
	}
	/**
	 * @param telNo2 the telNo2 to set
	 */
	public void setTelNo2(String telNo2) {
		this.telNo2 = telNo2;
	}
	/**
	 * @param faxNo1 the faxNo1 to set
	 */
	public void setFaxNo1(String faxNo1) {
		this.faxNo1 = faxNo1;
	}
	/**
	 * @param faxNo2 the faxNo2 to set
	 */
	public void setFaxNo2(String faxNo2) {
		this.faxNo2 = faxNo2;
	}
	/**
	 * @param website1 the website1 to set
	 */
	public void setWebsite1(String website1) {
		this.website1 = website1;
	}
	/**
	 * @param website2 the website2 to set
	 */
	public void setWebsite2(String website2) {
		this.website2 = website2;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "OrganizationDetailsDTO [orgId=" + orgId + ", orgName="
				+ orgName + ", addLine1=" + addLine1 + ", pincode=" + pincode
				+ ", website1=" + website1 + "]";
	}
}
